import { createRouter, createWebHistory } from 'vue-router'
import { routes } from './routes'
import { setupGuards } from './guard'

const router = createRouter({
    history: createWebHistory(),
    routes
})

// 设置路由守卫
setupGuards(router)

export default router